package com.lq.createPattern.factory.factorymethod;



public class CoffeeStore {
    private CoffeeFactory coffeeFactory;

    public void setFactory(CoffeeFactory factory){
        this.coffeeFactory=factory;
    }

    public Coffee orderCoffee() {
        Coffee coffee = coffeeFactory.creatCoffee();
        return coffee;
    }

}
